from django.urls import path
from . import views
from django.conf import settings
from django.conf.urls.static import static
app_name = 'news'

urlpatterns = [
    path('user_register/', views.user_register, name='user_register'),
    path('main_index/', views.main_index, name='main_index'),
    path('user_login/', views.user_login, name="user_login"),
    path('get_password_1/', views.get_password_1, name="get_password_1"),
    path('<int:phone>/reset_password/', views.reset_password, name='reset_password'),
    path('forget_password/', views.forget_password, name='forget_password'),
    path('publish_content/', views.publish_content, name='publish_content'),
    path('publish_content_success/', views.publish_content_success, name='publish_content_success'),
    path('user_index/', views.user_index, name='user_index'),
    path('user_login_main/', views.user_login_main, name='user_login_main'),
    path('<int:article_id>/article_detail/', views.article_detail, name='article_detail'),
    path('mypublish/', views.mypublish, name='mypublish'),
    path('alert_pwd_1/', views.alert_pwd_1, name='alert_pwd_1'),
    path('<alert_pwd_2/', views.alert_pwd_2, name='alert_pwd_2'),
    path('recharge/', views.recharge, name='recharge'),
    path('exchange/', views.exchange, name='exchange'),
    path('my_vip/', views.my_vip, name='my_vip'),
    path('my_integral/', views.my_integral, name='my_integral'),
    path('my_message/', views.my_message, name='my_message'),
    path('user_logout/', views.user_logout, name="user_logout"),
    path('mores/', views.mores, name="mores"),
    path('<int:article_id>/share/', views.share, name='share'),
    path('<int:article_id>/comment/', views.comment, name='comment'),
    path('<int:article_id>/zan/', views.zan, name='zan'),
    path('code/', views.code, name='code'),

]




# urlpatterns = [
#     path('user_register/', views.user_register, name='user_register'),
#     path('main_index/', views.main_index, name='main_index'),
#     path('user_login/', views.user_login, name="user_login"),
#     path('get_password_1/', views.get_password_1, name="get_password_1"),
#     path('reset_password/', views.reset_password, name='reset_password'),
#     path('forget_password/', views.forget_password, name='forget_password'),
#     path('publish_content/', views.publish_content, name='publish_content'),
#     path('user_index/', views.user_index, name='user_index'),
#     path('user_login_main/', views.user_login_main, name='user_login_main'),
#     path('publish_content_success/', views.publish_content_success, name='publish_content_success'),
#     path('recharge/', views.recharge, name='recharge'),
#     # path('recharge1/', views.recharge1, name='recharge1'),
#     path('exchange/', views.exchange, name='exchange'),
#     # path('news/', views.news, name='news'),
#     # path('flash/', views.flash, name='flash'),
#     path('mypublish/', views.mypublish, name='mypublish'),
#     path('my_message/', views.my_message, name='my_message'),
#     # path('user_data/', views.user_data, name='user_data'),
#     path('my_vip/', views.my_vip, name='my_vip'),
#     path('my_integral/', views.my_integral, name='my_integral'),
#     path('alert_pwd_1/', views.alert_pwd_1, name='alert_pwd_1'),
#     path('user_logout/', views.user_logout, name='user_logout'),
#     path('alert_pwd_2/', views.alert_pwd_2, name='alert_pwd_2'),
#       path('code/', views.code, name='code'),
#     path('mores/', views.mores, name='mores'),
#     path('<int:article_id>/article_detail/', views.article_detail, name='article_detail')
# ]

urlpatterns += static(settings.MEDIA_URL, document_root=settings.MEDIA_ROOT)
urlpatterns += static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)